<template>
  <el-table
    :data="tabData"
    border
    style="width: 100%"
  >
    <el-table-column
      v-for="(item,index) in tableHeader"
      :key="index"
      :prop="item.prop"
      :label="item.label"
    />
  </el-table>
</template>

<script>
export default {
  props: {
    tableHeader: {
      type: Array,
      default() {
        return []
      }
    },
    tabData: {
      type: Array,
      default() {
        return []
      }
    }
  },
  created() {
    console.log(this.tableHeader, this.tabData)
  }
}
</script>

<style lang="sass" scoped>

</style>
